home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / SCSL / zgbequ.z / zgbequ
Encoding:
Text File  |  2002-10-03  |  4.7 KB  |  133 lines

  1.  
  2.  
  3.  
  4. ZZZZGGGGBBBBEEEEQQQQUUUU((((3333SSSS))))                                                          ZZZZGGGGBBBBEEEEQQQQUUUU((((3333SSSS))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      ZGBEQU - compute row and column scalings intended to equilibrate an M-
  10.      by-N band matrix A and reduce its condition number
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      SUBROUTINE ZGBEQU( M, N, KL, KU, AB, LDAB, R, C, ROWCND, COLCND, AMAX,
  14.                         INFO )
  15.  
  16.          INTEGER        INFO, KL, KU, LDAB, M, N
  17.  
  18.          DOUBLE         PRECISION AMAX, COLCND, ROWCND
  19.  
  20.          DOUBLE         PRECISION C( * ), R( * )
  21.  
  22.          COMPLEX*16     AB( LDAB, * )
  23.  
  24. IIIIMMMMPPPPLLLLEEEEMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
  25.      These routines are part of the SCSL Scientific Library and can be loaded
  26.      using either the -lscs or the -lscs_mp option.  The -lscs_mp option
  27.      directs the linker to use the multi-processor version of the library.
  28.  
  29.      When linking to SCSL with -lscs or -lscs_mp, the default integer size is
  30.      4 bytes (32 bits). Another version of SCSL is available in which integers
  31.      are 8 bytes (64 bits).  This version allows the user access to larger
  32.      memory sizes and helps when porting legacy Cray codes.  It can be loaded
  33.      by using the -lscs_i8 option or the -lscs_i8_mp option. A program may use
  34.      only one of the two versions; 4-byte integer and 8-byte integer library
  35.      calls cannot be mixed.
  36.  
  37. PPPPUUUURRRRPPPPOOOOSSSSEEEE
  38.      ZGBEQU computes row and column scalings intended to equilibrate an M-by-N
  39.      band matrix A and reduce its condition number. R returns the row scale
  40.      factors and C the column scale factors, chosen to try to make the largest
  41.      element in each row and column of the matrix B with elements
  42.      B(i,j)=R(i)*A(i,j)*C(j) have absolute value 1.
  43.  
  44.      R(i) and C(j) are restricted to be between SMLNUM = smallest safe number
  45.      and BIGNUM = largest safe number.  Use of these scaling factors is not
  46.      guaranteed to reduce the condition number of A but works well in
  47.      practice.
  48.  
  49.  
  50. AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  51.      M       (input) INTEGER
  52.              The number of rows of the matrix A.  M >= 0.
  53.  
  54.      N       (input) INTEGER
  55.              The number of columns of the matrix A.  N >= 0.
  56.  
  57.      KL      (input) INTEGER
  58.              The number of subdiagonals within the band of A.  KL >= 0.
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. ZZZZGGGGBBBBEEEEQQQQUUUU((((3333SSSS))))                                                          ZZZZGGGGBBBBEEEEQQQQUUUU((((3333SSSS))))
  71.  
  72.  
  73.  
  74.      KU      (input) INTEGER
  75.              The number of superdiagonals within the band of A.  KU >= 0.
  76.  
  77.      AB      (input) COMPLEX*16 array, dimension (LDAB,N)
  78.              The band matrix A, stored in rows 1 to KL+KU+1.  The j-th column
  79.              of A is stored in the j-th column of the array AB as follows:
  80.              AB(ku+1+i-j,j) = A(i,j) for max(1,j-ku)<=i<=min(m,j+kl).
  81.  
  82.      LDAB    (input) INTEGER
  83.              The leading dimension of the array AB.  LDAB >= KL+KU+1.
  84.  
  85.      R       (output) DOUBLE PRECISION array, dimension (M)
  86.              If INFO = 0, or INFO > M, R contains the row scale factors for A.
  87.  
  88.      C       (output) DOUBLE PRECISION array, dimension (N)
  89.              If INFO = 0, C contains the column scale factors for A.
  90.  
  91.      ROWCND  (output) DOUBLE PRECISION
  92.              If INFO = 0 or INFO > M, ROWCND contains the ratio of the
  93.              smallest R(i) to the largest R(i).  If ROWCND >= 0.1 and AMAX is
  94.              neither too large nor too small, it is not worth scaling by R.
  95.  
  96.      COLCND  (output) DOUBLE PRECISION
  97.              If INFO = 0, COLCND contains the ratio of the smallest C(i) to
  98.              the largest C(i).  If COLCND >= 0.1, it is not worth scaling by
  99.              C.
  100.  
  101.      AMAX    (output) DOUBLE PRECISION
  102.              Absolute value of largest matrix element.  If AMAX is very close
  103.              to overflow or very close to underflow, the matrix should be
  104.              scaled.
  105.  
  106.      INFO    (output) INTEGER
  107.              = 0:  successful exit
  108.              < 0:  if INFO = -i, the i-th argument had an illegal value
  109.              > 0:  if INFO = i, and i is
  110.              <= M:  the i-th row of A is exactly zero
  111.              >  M:  the (i-M)-th column of A is exactly zero
  112.  
  113. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  114.      INTRO_LAPACK(3S), INTRO_SCSL(3S)
  115.  
  116.      This man page is available only online.
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.